package com.ifengchao.job;

import com.ifengchao.service.DealCreativesService;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
 * 创意统计
 *
 * @author chen
 */
@Component(value = "dealCreativesJob")
public class DealCreativesJob {
    private static final Logger logger = Logger.getLogger(DealCreativesJob.class);
    @Autowired(required = true)
    private DealCreativesService dealCreativesService;

    /**
     * 获取创意趋势逻辑
     */
    public void executeTask() {
        System.out.println("-----进入获取创意趋势逻辑job------");
        logger.info("-----进入获取创意趋势逻辑job------");
        try {
            dealCreativesService.getCreativesByPlan();
//			dealOrderService.queryAllOrder();
        } catch (Exception e) {
            logger.error("获取创意趋势逻辑出错：", e);
        }
    }
}